/*
 * @Author: yanjikun
 * @Date: 2021-06-11 10:11:33
 * @LastEditors: yanjikun
 * @LastEditTime: 2022-06-13 15:20:28
 * @Description: file content
 */
import type { AxiosRequestConfig } from 'axios'
export interface RequestHeaders {
  Authorization: string
}
export interface YAxiosOption extends AxiosRequestConfig {}

export interface ICustomOptions {
  /** 是否转为formData */
  dataStringify?: boolean
  /**  是否开启取消重复请求 */
  requestCancel?: boolean
  /** 是否全屏加载  */
  fullLoading?: boolean
  /** 是否提示报错信息  */
  errorMessage?: boolean
  /** 是否返回全部请求 包含Header等 */
  allResponse?: boolean
  /**请求成功的提示信息 */
  successMsg?: string
}
export interface Result<T = any> {
  code: number
  msg: string
  data: T
}
